﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TestPanel : UIBase
{
    [SerializeField]
    private Button btn;

    [SerializeField]
    private Text txt;

    void Start()
    {
        btn.onClick.AddListener(onClick);
    }

    void onClick()
    {
        txt.text += "1";

        //还能播放声音
        Dispatch(AreaCode.AUDIO, AudioEvent.PLAY_AUDIO, "audioName1");
        Dispatch(AreaCode.UI, AudioEvent.PLAY_AUDIO, "audioName1");
    }
}
